package com.gitee.cashzhang27.test.boot.resilience4j.exception;

import java.util.function.Predicate;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/11/26 15:23
 */
public class RecordFailurePredicate implements Predicate<Throwable> {
  @Override
  public boolean test(Throwable throwable) {
    return !(throwable instanceof BusinessException);
  }
}
